package cn.exrick.xboot.modules.content.service;

import cn.exrick.xboot.base.XbootBaseService;
import cn.exrick.xboot.common.vo.SearchVo;
import cn.exrick.xboot.modules.content.entity.HontDepartmentHeader;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;


/**
 * 部门负责人接口
 * @author Exrick
 */
public interface HontDepartmentHeaderService extends XbootBaseService<HontDepartmentHeader, String> {

    /**
     * 通过部门和负责人类型获取
     * @param departmentId
     * @param type
     * @return
     */
    List<String> findHeaderByHontDepartmentId(String departmentId, Integer type);

    /**
     * 通过部门id删除
     * @param departmentId
     */
    void deleteByHontDepartmentId(String departmentId);

    /**
     * 通过userId删除
     * @param userId
     */
    void deleteByHontUserId(String userId);

    List<HontDepartmentHeader> findByHontUserId(String userId);

}